package gameDisplayer;

import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.Image;

import java.util.List;
import gameManager.AmmunitionObject;
import gameManager.Interactable;
import gameManager.GameManager;




public class Game {
private List<Interactable> myInteractableCharacters;
private Image myImage;

public Game( List<Interactable> InteractableCharacters, Image background){
    myInteractableCharacters = InteractableCharacters;
    myImage = background;
}
    public void paintComponent (Graphics2D pen, Dimension size) {
      
        for(Interactable i:myInteractableCharacters){
       pen.drawImage(i.getObjectImage(),i.getCenter().x,i.getCenter().y,null);
        }

        
    }
    public void drawBackground(Graphics2D pen,Image myImage){
        pen.drawImage(myImage,0,0,null); 
    }

}
